/*
 * File:   sensor_typedefs.h
 * Author: ruben
 *
 * Created on 7. M�rz 2011, 12:41
 */

#ifndef _SENSOR_TYPEDEFS_
#define _SENSOR_TYPEDEFS_

#define ADDR_MASK 0x01

#define TRUE 1
#define FALSE !TRUE


typedef enum{
    SENSOR_0_ACTIV,
    SENSOR_1_ACTIV,
    SENSOR_2_ACTIV,
    SENSOR_3_ACTIV,
    SENSOR_4_ACTIV,
    SENSOR_5_ACTIV,
    SENSOR_6_ACTIV,
    SENSOR_7_ACTIV,
    SENSOR_8_ACTIV,
    SENSOR_9_ACTIV,
    SENSOR_10_ACTIV,
    SENSOR_11_ACTIV,
    SENSOR_12_ACTIV,
    SENSOR_13_ACTIV,
    SENSOR_14_ACTIV,
    SENSOR_15_ACTIV,
    NO_SENSOR_ACTIV
} ESensorAct;

typedef enum{
    SENSOR_ADDR_0 = 0x00,
    SENSOR_ADDR_1 = 0x01,
    SENSOR_ADDR_2 = 0x02,
    SENSOR_ADDR_3 = 0x03,
    SENSOR_ADDR_4 = 0x04,
    SENSOR_ADDR_5 = 0x05,
    SENSOR_ADDR_6 = 0x06,
    SENSOR_ADDR_7 = 0x07,
    SENSOR_ADDR_8 = 0x08,
    SENSOR_ADDR_9 = 0x09,
    SENSOR_ADDR_10 = 0x0A,
    SENSOR_ADDR_11 = 0x0B,
    SENSOR_ADDR_12 = 0x0C,
    SENSOR_ADDR_13 = 0x0D,
    SENSOR_ADDR_14 = 0x0E,
    SENSOR_ADDR_15 = 0x0F
} ESensorAdr;

typedef enum{
    DATA_VOLTAGE 			= 1,
    DATA_CURRENT 			= 2,
    DATA_VARIOMETER 	= 3,
    DATA_SPEED 				= 4,
    DATA_REVOLUTION 	= 5,
    DATA_TEMPERATURE 	= 6,
    DATA_DIRECTION	 	= 7,
    DATA_HEIGHT 			= 8,
    DATA_TANKLEVEL	 	= 9,
    DATA_LINKQUALITY 	= 10,
    DATA_CHARGECOUNTER = 11,
    DATA_FLUID				= 12,
    DATA_LONGDISTANCE = 13,
} ESensorValClass;

#endif
